<?php
namespace App\Exceptions;

use Symfony\Component\HttpKernel\Exception\HttpException;

class KnowledgeNotFoundException extends HttpException
{
    protected $message = '知识点不存在';
    protected $code = 'knowledge.not.found';

    public function __construct()
    {
        parent::__construct(400, $this->message);
    }
}
